package org.hamster.common.aggrid.model;

/**
 * Model representing sort parameters from ag-Grid
 */
public class SortModel {
    private String colId;
    private String sort; // 'asc' or 'desc'

    public SortModel() {
    }

    public SortModel(String colId, String sort) {
        this.colId = colId;
        this.sort = sort;
    }

    public String getColId() {
        return colId;
    }

    public void setColId(String colId) {
        this.colId = colId;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "SortModel{" +
                "colId='" + colId + '\'' +
                ", sort='" + sort + '\'' +
                '}';
    }
}